<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page import="java.util.ArrayList,edu.wfmanage.models.*, com.opensymphony.xwork2.ActionContext,java.util.Map,java.util.List" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script language="javascript">
function doValidation() {
	var domain=document.getElementById("domain").value;
	var wfpoint=document.getElementById("wfpoint").value;
	if (domain==""){
		alert("Domain field is manadtaory.Please enter appropriately");
		return false;
	}
	if (wfpoint==""){
		alert("WorkFlow Point field is manadtaory.Please enter appropriately");
		return false;
	}
	return true;
}
</script>
</head>
<body>
<h2>Define WorkFlow Point under a particular domain</h2>
<s:form action="adminDefineWF" name="domain">
<table id="text" align="center">
<tr>
<td><s:select label="Select Domain" headerKey="" headerValue="-none-" list="domainList" listvalue="name" name="myDomain" id="domain"></s:select></td>
</tr>
<tr>
<td><s:select label="Select WorkFlowPoint" headerKey="" headerValue="-none-" list="WFList" listvalue="name" name="myWFPoint" id="wfpoint"></s:select></td>
</tr>
<tr></tr>
</table>
<table id="text" align="center">
<tr>
<td><s:submit name="commandButton" value="Add WorkFlow Points" id = "mysubmit" style="height: 30px; width: 200px" onclick="return doValidation()">
</s:submit></td>
<td><s:submit name = "commandButton" value="Remove WorkFlow Points" id = "mysubmit" style="height: 30px; width: 200px" onclick="return doValidation()">
</s:submit></td>
</tr>
<tr>
<td><s:form action="back" align="right" name = "Back">
<s:submit name = "commandButton" value="Back to Admin Home" id = "mysubmit" style="height: 30px; width: 200px">
</s:submit></s:form></td>
</tr>
</table>
</s:form>
</body>
</html>